package com.seashop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 会员资金变动日志
 * </p>
 *
 * @author moredln
 * @since 2020-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MemberFinanceLog对象", description="会员资金变动日志")
public class MemberFinanceLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "日志行为标识")
    private String behavior;

    @ApiModelProperty(value = "购买者用户id")
    private Integer buyerId;

    @ApiModelProperty(value = "国家代码")
    private String countryCode;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "扩展信息")
    private String exInfo;

    @ApiModelProperty(value = "变动金额")
    private BigDecimal money;

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "下单sku数量")
    private Integer quantity;

    @ApiModelProperty(value = "sku id")
    private Long skuId;

    @ApiModelProperty(value = "spu id")
    private Long spuId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "当时的会员等级")
    private Integer userLevel;

    @ApiModelProperty(value = "item id 物理库存")
    private String itemId;

    @ApiModelProperty(value = "当时的推广等级")
    private Integer promotionLevel;


}
